package com.atstudy.headline.enums;

public enum ResultCodeEnum {
    PARAMETER_EMPTY(40001, "参数不能为空"),
    UPDATE_FAILED(40002, "更新操作失败");

    private final int code;
    private final String message;

    ResultCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}